/**
 * Copyright © 2018 陈锦韬  All rights reserved.
 * 
 * @Package: com.rx.controller 
 * @author: Administrator   
 * @date: 2018年1月22日 下午4:06:51
 */
package com.rx.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.rx.core.base.BaseController;
import com.rx.core.exp.BizException;
import com.rx.init.SystemInit;
import com.rx.service.IApiService;
import com.rx.service.inner.IApiCtrlService;
import com.rx.service.inner.ISysCtrlService;
import com.rx.service.inner.TestService;

/**
 * @className: DemoController 
 * @author: Administrator
 * @Description: TODO
 * @date: 2018年1月22日 下午4:06:51
 */
@RestController
@RequestMapping(value="demo2")
public class DemoController extends BaseController {

	
	@Autowired
	TestService testService;
	@Autowired
	ISysCtrlService sysCtrlService;
	@Autowired
	SystemInit systemInit;
	
	@Autowired
	IApiService apiCtrlService;
	
	@RequestMapping(value="hello",method=RequestMethod.GET)
	public String hello(@RequestParam(value="information",defaultValue="") String information) throws ClassNotFoundException, BizException{
		String ooo = null;
		try {
			 ooo= apiCtrlService.thirdRequset("RX", "tEST", "OW");
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} 
		return "fail" + ooo;
	}
}
